update and seplling