finished with getting output using chaining