adding logic to other vars for initialization