updated samples with namespaces