function for comment reading