made an update function in the install file

here is the function