improved inline rendering