format! a function to save the day