second version of singlenumber