removed prints and added number of backtracks
fixed merge conflict