remove redundant gems