code formatted

The code has been formatted to be more readable