include latest_diff_timestamp in output
reverse latest_diff_timestamp
remove print
bug fixes