beforeTimestamp -> offset