helper added
removed adddate and maxdate
new base class