removing debug functions