adding speed method to runtime