replaced token with env variable and changed