removed nil elements from array