made changes to properly initialise collections