working on hetro rules agent