rect adjustment