handle some undefined values