adding date functionality