remove unnecessary mapping.