added implementation of shapesDrawn