Method and arrangement in connection with the windup