added rate setting tmp