playout function added