removed extraneous code