remove extraneous code