new render type//merged changes by Minty