utils for creating and scaling tables