corrected messagebox