begining of parsing of rules