working on dynamic core data methods