added CoreData methods