fix up annoying signed/unsigned and mixed type errors