remove update param
add comments
new func setToSession