solved the problem with dates