created a function in getMessage that uses the canaconda data type, rather than strings. still need to integrate this