adaptation of shift sequence based method for high number