update script
add new function