added sample for replace