removes some unused variables