move namestring to  a method