changed error for missing term