added rates functions