remove unnecessary/unused variables