add logic to generate Cloud