scope rule in code fragment rule to allow for variables