deleted a few unnecessary variables