get correct path