nested #then: working