added auto play mode