optimize the whole render