put error check in alchemy response