added advanced rendering functions