added rules for modules