added core data for persistence