remove keys and add gems