getting all rates as one function added