code to produce had syntax error