compare with key/values when handling inserted_ways