added pic of truth table