removed head[] error during tracing
cosmetic changes to comply with new lexer/grammar