add instruct repeat count and repeat time function