deleted unnecessary and mistyped code