refactoring output functions
create gwb