function: play mode added.