changing second hand vars to -1

in logic first check if var is -1 if it is then hasnt been set as input
otherwise it has