removing unnecessary variables