now writes coords to coredata,