displaying a rectangle