better function for evalpolynom recursion