change .array() and .hash() to .toArray() and .toObject()
add .join()