unused variables removed