cayley's theorem unified both