improve render performance