formatted code to clean format