started on playout function