update at a certain interval