array notices fixed