added comments after bug fix