auto play and also if else time thing fixed