optimize for speed.