first attempt at paths