get the input path tag right