It would be better if I deleted the unused variable from the correct function.