removing extra variables