implemented intermediate mode for the evaluation