added functions to create the table for 'functions' data.