rename 'backtrack' to 'gen'