Turn ast inside out