started implementing f_eval()