now takes from and to dates