better example, allows performance tweaks