using a names vector as requested in #232