modify operator= in coord.hpp