another date range fix, and deleted console.log