location of failed code is commented in main.cpp