replace rub with hex