remove switch code of kernel commented ago