attach loop-id to fn-method, not to fn