handle the null input