added inline commenting