fix implementation of copyNumber in PosPart
make return type the same as the input