created a way to clean mapped to ids