changed Graphics to Graphics2D