added unsigned qualifier for array subscripts