now separate function for play-out