good practice with error instances