fixed args count in for loop