problems in read vector