added type spec to stats_map/1