adjusting route path. deleting unneeded fields