merge attributes