refactor with vector param destructuring
refactor with vector param destructuring