move status, pair, unpair to functs