add throw clauses