delete unnecessary variables