fix work wit arrays