added some time measurement