merge two setState