add attributes into token