add sample interpolation code