implemented debug off function