fix bugs, change rec
fix bugs, change rec