wrote equals for coordinate