implementing map_stat()