before adding date