removing error and debugger