making automatic updating work