explain how duplicate inputs are checked by pathname and by hash