before adding coreData