improved the extending of the rendered callback