removes debug log code