adjust rectangle