The evolution of massive and very massive stars in clusters