use time interval instance of using delay()