solve the problem of rendering