created variables for second function on booleans