checks for left operands