refactor notice message