try to avoid comparing signed to unsigned