reduced duplicate code in binary operator evaluation further