transformation txt -> map