added update rutine