removing extraneous instructions