moving format_value method to coordinate_helpers