correct signed/unsigned mismatch