added error checking
allow statements for longer than 3month date ranges