change to 1d array for conv