update of procedure

to resist to more problems