added drawRectangle