changed initialization methods so that alterations made to the element array during deactivation take effect on activation