signed/unsigned mismatch warnings fixed