fix the index of current in vector when relloc
add list get item function and test in main