length of array instead of object