beautify
add comment
change '!= undefined' to '!== undefined'