added support to return a vector of doubles