rewrite task switch code.
typo.  wrong comment
forgotten function ...
remove list node