remove useless code; solve deep population issue