rules implementaiton beginning