code main user