improve (?) variable editing sequence