testing callback

x using params only to retain scoping
- use global variable for storing data