instead of setting the indentation globally, it should be passed as a parameter to the function.
instead of setting the indentation globally, it should be passed as a parameter to the function.