correctly evaluating code