reformatting the code for better visibility