refactored some reminder message code