removed extension algorithm