trying to figure out how to handle the error