changed spatial coords to floats