two wire and three wire method