Removing extra variables