with date but has bugs