modify the calc of device 13