fix the example to show off the lag function to get ms