Extra lines of array removed