case for null and undefined values