optimize x parallel