fixed example with addTo