remove unnecessary variables