added timestamp method