handling case where res is null in et-add