do not you want these two in reverse order  also the store should be a release store if you want to guarantee that samples map is only seen fully initialized  but maybe this oesn t really matter because this happens way earlier  