fix broken vector length and formatting