change sequence for replicateM