Interpreting the complex CMDs of the Magellanic Clouds clusters