using path variable instead of url