add nested reoetutuve statement