added comments
its work