adjusted date & added logging