Fix input

Using array for input that have to be modified.