adding upgrade procedure