a few small tweaks based on feedback from PVS studio