better name for partitioning function; correct location of journal_size