zeros at the end

last array element unable to process that