tmp is an array, too