modify pushToken method for parser