only print rate in script
return real rate to index view