fix extends clause, update given txt