added weak eval function from real example