added exception case in evalPN