clean unnecessary variables