Related party transactions and earnings management