how to duplicate a sequence