removed memory leak from update()