updates and deleted an unused form
begin scoping