dealing with undefined values in offers