fixed the rate thing, my version definitly works