small performance enhancement