Putting only one variable within the function to the error point the variable that needs to be tidy