added setting the initial date