change sequence invocation method

use for loop