change $id to $vid