rules: lhs, nhs and hrs scoping working