working timestamp thanks to andrew and mike :)