mapping and transforming to achieve sanner structure