important change: count minimal time for each pass