added an array to track input