corrected bug in speed ball calculation