deleted unnecessary variables