refine model relationship #2, edit seed, fix minor bugs