optimize core