Transcyclization of benzoxazoles