fixed signed/unsigned warning