merge returns entity