A reduction of the Jacobian conjecture to the symmetric case