t2l function

Set up smooth term with factor loading