generate, insert token