added the read_operand and evaluate functions