minor changes in renderer to check if some operations are necessary before implement them