removing unsigned comparison warnings