adding a function to call alchemy