add play out function