main_fun bug in seedtype fixed