replaced double loop with a single loop calling a conductor object