updated datestamp algor