formatted code for better readability
changed formatting a bit.