Changed arrays to list