added example that recycles the existing elements