added method to set coord_type