do not use anymore attributestoArray