comment capture functions