Path generation--not working