update depreciated render call