changed rate function
Merge branch 'master' of https://github.com/wyollinger1/massive-tyrion