fixed datatype for coords