compare paths