extract format into a constant