bug fixed
add time measure