corrected truth table for 7 seg display