added clear for the drew of the figures