working on gui.update()