add coredata methods