updating variable processing logic