added play functionality