fixing buildnew method