making draw fuctions properly draw rectangles