add a formatter function to the package