update sample with namespaces