low: delete duplicate code regarding the adding variable operation.