debug should be false intitially