added permanent closing element to array