started working on a collate function for pulling together function definitons