found mistake.... don't want to add object if array is already the max limit