updated rectangle