update sample to not rely on DynStoredElements