changed class variable to normal array