changed small things in Rectangle implementation