error when using undefined token