input changes to an array