use separate function for ioprio class