remove used variables