fix after use of array