updated inlines to handle nested inlines