library: neater formatting