added inline comments