now accepts date as param