sample add and update