refactoring on printing + resolve TODO in utils