changed debug to run all code