changed the methods to accomodate stream type, started working on the subrule comparing functions