added helper to invalidRate