cleaning, fixed printing of wrong date (print curdate instead of last)