looping
date ranges not working