finally, all rules working