corrected some code formatting issues