updated two-loops example