formatted code for better readability