added function shell.