refactor removed un used var.