cleaned up comments and isInlineText