added trigger for inner loop