implemented basic commenting logic