extract constant "numof_parts" out of function "createTable"