now it does both paths