inputted the variable with all the terms and the ifs and print out to log info