added sampling with time travel