fixed example for then method