Everything works till evalute function