modification of the structure of the img