formatted code & remove debugging statements.