turn generator to list for debug
fix prec-succ typo