switched to using stl container to hold objects, helps with memory leaks and is a 'best practice'