maybe-better speed calculation