removed extra code

removed not needed code and whitespace.