add doc comment to getRules