comment parsing logic