fixed bug in array ordering