optimise token creating