removed unused variable declaration from ex2