remove superfluous gems