unused state variable has been removed