moved add renderer functions to the correct place