array element removal corrected