added working with dates