also check maxdate