fixed some code formatting