edit distances for parts