minor abstraction over phi creation
same for lms