save in core data put in block