figuring out path