add modification about dynamique resize