fixed off by one time stamping error