added seperate functions depending on what renderer is used