fix comment
add check result is null or not
add debug code