clean extraneous code