remove extra variables