changed the order of initialization of collections