printing debug statements exported into function