updated for defined date