modify array attributes