notice and error mesages fix