minor speed fix