vector dimensions defined in variable