added last day stuff