refactored names from main to thing