now .transform is exception safe