added print statmesnts to helper functions