created evaluateAction sub function

will be used with execute