make dates more flexible