uniqueid seems to be working in core data