get rid of signed vs unsigned comparison warning