randomly decides whether to stack the data or not
removed demo code from the accessor into common