updated Update method