Sex tricks from bacteria and flies