fixed some things in the coordinate struct