update 2dcoords