added code to load three tables - v4