generating and sending token data in different functions