pulled out startdate and enddate as arguments