added correct time advancement