changed DEBUG methods to proper define style