put speed computation back to internal algorithm