made an update function in the install file