added transform and improved cpu