add in null check stmt