set up cloud format with distance parameter