updated debug setting to use exisiting variable