adjusted some errors in input data