use strings and vectors instead of arrays