created a function in getPayLoad that uses the canaconda data type, rather than strings. still need to work on rest of function