change methods to one which is associated with structs in models package