added speed variables