Further code clean up

Signed-off-by: ziycon <ziycon.eire@gmail.com>