added types to gestion_rot in second process, need to change the third