added core data and delete functions