changed from null to an empty arraylist