sorted lack of array problem