removing debug and avoiding a notice