transform3 code clean up.