updating the stl thread safe container to stick closer to stl syntax