formater for btree