changes to element array to add back in some elements