change queue to list