draws a rectangle