correction speed dimension and caculate speed