add max rectangle & partionlist