coded saveing into core data