added update rate variable