some microoptimization