fixed some formatting changes at the beginning and end