update for rdiscount compatibale