Yang-mills theory without gauge fixing