formatting the code for better readability