added mealy input table