error fixed (pointer to a pointer in addCloud function(s))