removing debug function