simplified the bindAll example
(cherry picked from commit 21e0cbc229f3da0f2b10716be06752465fee7dfc)