minor updates to rule
formatting update and fixed tests to pass