remove notices and debug