fix what Kyle suggested for warning messages & range of dates