refactored verbose check into function output