It's hard to follow this part -- maybe an example in the comment can help (+ possible take it out of an anon function).