fixing signed/unsigned mismatches