removed fail safe render code