insert NULL checks before use.