checked in gap_nmf