fixed inference engine, added cusotm compares method to conditionals