added renderInline function