changed the interval time to 1 sec