minor change to avoid warnings about signedness