improve rendering speed