add function of coordinate