finally got to map to work