swap head and base