support total paths generation