improve rendering order