integrated api changes for render function