added draft of Update() loop