changed array structure