fix dimension for speed