some minor speed changes