setContainer method