commenting the code a bit