comments added on the code