made some changes to core data manager because code wasn't being used