small performance tweaks