unused variable are removed
variable are properly named
multiple enumerations warning removed by applying ToList method