quantum shell function added