use vector instead of struct