small optimization
better extension example