extraneous code eliminated