add some comments to make the code more readable
better now
just a bit adjustment