switch dep order