made MC iterate, adding testing functions of units