added comments and a lexical cast for containers