add in empty check for dates