very minor speed improvements