Change array to list