update> code snippets on Main.hx