Don't name this `paths` (plural), use `path` so you don't confuse things later on.  Anything that you have named `path` below should have a different name.