fixed code formatting issues