simple rule state tracker