draws curves on top of each other