changed the code formatting