???
fix memory error. and make allocate_vector