head 1d program modifications to take average time for 20 samples