// small optimization