logic for comment