rerefactored set cordinates and get cprn]dinates