avoid some signed/unsigned warnings