fixed some code formatting issues as suggested in the guideline.