capicua and data format algorithm