draw recangle corectly