documented spaces function