so I am trying to figure out how to write async functions correctly