delete setVIDPID
add synchronized in write method