predicate prediction algo added