remove array items, ugly solution