modified clustering_mapper.py