small performance refinement 2