Change routine

change the routine of the update.
create the different update steps as methods