use the old script to measure time