fixing indentation on foreach loops