changed definition of related tables