draw a rect