added play funciton