implement dynamic token