not working backtrack