namespace function now accepts atoms