getting rid of extraneous code