removed call to debug