added update-function