writing mapper