re formatted code