changed array to collection