removed code from core data