working on poleval()