performed some formatting on the code