added Demagevery(time) function