experimenting with closures for reusability