comparable and pathvariable