create field cpp