check ArrayList declaration change

Apparently better, according to StackOverflow.