made sample localizable