changed reset junctions