fixing bug: array validation