increase speed
add time measure