use setTransform to replace transform

use setTransform to replace transform for performance.