On the double commutation method