Combained when_chained_methods() into when() for both cases