creating table from pre>code