do some formatting