helper function for evaluation
renaming