updates to coredata