Moved private to global scope

there’s no need to keep it in the classified scope. Moving it out will
prevent it from being redefined each time. I also moved container out
of the get function for the same reason.