cube representation helper fns