add legacy sample