added update function for OS