double homo to double loop