removing extraneous gems