refactoring the way gritano prints tables