added functionality to comments