convert {textarea} from block into function