avoid code duplication and use model to format the value