fixed bugs; done b4ExpireAlertTime