adding closure so we can debug