fixed pub sub pattern to collect map data, now working properly