adds correct gems