first step into generating the path