refactor out intiial weights