Removing leftover array code