fix playlist func