implementation of rule