added init and play