make sure to allocate max needed for cracked array