move rule inside the 'loop'