small performance refinement